HMaster startup code analysis for source code analysis of HBase1.0.0 (2), hbase1.0.0hmaster
In the previous blog, my code analysis is the startup function of the startMaster core. This article mainly analyzes the corresponding components involved in the specific HMaster construction process and the startup of services, this article mainly analyzes the process. The specific starting process of each part will
This article is based on HBase-0.94.1 analysis of the main class members of Hmaster.Hmaster is the central node in the HBase master/slave cluster architecture. Typically, an hbase cluster has multiple hmaster nodes, one of which is active master and the rest is Backup master.The main class members of Hmaster are as follows:1.ZooKeeper ListeningThese classes are inherited from Zookeeperlistener./************
HMaster startup code analysis for source code analysis of HBase1.0.0 (1), hbase1.0.0hmaster
This article is not really about startup code parsing. This article mainly analyzes the startHMaster part from the startup process. This article will introduce HBase's pseudo-distributed debugging method for the first time.
After we import the source code to Intellij IDE, we will get the following code structure:
Here we go to hbase-server to add hadoop-metrics
In fact, this article is not really a start-up code parsing, this article is mainly from the start-up process analysis to the Starthmaster part, for the first time this article will be about HBase pseudo-distributed debugging methods related to the introduction.After we pour the source into the IntelliJ IDE, we get the following code structure:Here we go into the hbase-server and add hadoop-metrics2-hbase.properties,hbase-site.xml to the resources under Src/main, Log4j.properties and other files
Each hregion server communicates with the Hmaster server, and Hmaster's primary task is to tell each hregion server what hregion it is maintaining.When a new Hregion server logs on to the Hmaster server, Hmaster tells it to wait for the data to be allocated first .When a hregion crashes, Hmaster will mark its responsib
Not much to say, directly on the dry goods!Question DetailsAs shown in the scenario title, after HBase starts, the hmaster process starts and shuts down automatically after a few seconds, but the hregionserver process runs normally;Workaround:1, check the time of each machine is synchronized;2, check the firewall of each machine is closed;3. Check the log path of the HmasterBut soon after Hmaster will autom
you pull the hbase source and conversion maven project is automatically pulled is right, if not to go to the project directory input commands, other blog can be checked.Under what circumstances to ensure that the configuration is correct, you can start hmaster? All BuildPath folders on the diagram must be guaranteed, and the name directory must be identical.After the configuration file I feel can actually not set hbase.site, under Src/main/resources
After the Hadoop namenode reformat, restart HBase, find its hmaster process to disappear immediately after the start, look at a lot of logs, and finally found the following problems in the zookeeper logUnable to read additional data from client SessionID 0x14e86607c850007, likely client have closed socketWorkaround: Delete the hdfs-site.xml of hbase in the directory under the configured path of the content, restart the zookeeper cluster, and then rest
1. Similar to hadoop, configuration is required first for basic startup steps.
2 get the address of the hmaster hbaseconfiguration first add two profile hbase-core.xml hbase-default.xml under classpath
Create hserveraddress (ADDR)
This is nothing to say, it is to create a server.
3. Obtain the rootdir of hbase data based on the configuration file.
Verify the directory, including version file data verification.
4. Check whether-root-region
Tags: default port address store zookeeper not modified serve root error1, the situation described title, HBase started, after the hmaster process started, a few seconds after the automatic shutdown, but the hregionserver process normal operation;The reason is that the default port number for HDFs is 8020, and I core-site.xml the port in HDFs to 9000.//hadoop1:9000/ However, we did not specify the port for HDFs, so after HBase started it went to the d
Since: http://www.vckbase.com/document/viewdoc? Id = 212
The purpose of this article is to provide a programming guide for programmers who have just come into contact with COM and help them understand the basic concepts of COM. The content includes the com standard introduction, important com terms, and how to reuse
Original: Http://www.codeproject.com/Articles/633/Introduction-to-COM-What-It-Is-and-How-to-Use-ItThe purpose of this article is to provide programming guidance to programmers who have just contacted COM and to help them understand the basic concepts of COM. The content includes a description of the COM specification ,
1, COM +
Because of historical reasons, COM, DCOM and MTS are not very harmonious with each other, it is difficult to form a unified whole. COM + has effectively unified these three, forming a new, powerful component architecture.
COM + is not a new version of COM, but a n
The purpose of this article is to provide programming guidance to programmers who have just contacted COM, and to help them understand the basic concepts of COM. The content includes a brief introduction to COM specifications, important COM terminology, and how to reuse existing CO
COM objects are encapsulated entities that provide services to users. This should be similar to the Class Object in C ++. But sometimes the COM object is treated as the class that provides services. The COM Object also encapsulates the data and provides interfaces. But there are some differences with the class. The data in the class can be declared as public, and
This article provides a programming guide to the programmers who just contacted COM, explaining the inside of the COM server and how to write your own interface in C + +.
Following the introduction of previous COM programming, this article discusses the content of COM servers, explains the steps and knowledge needed t
Difference Author: Sunwen translation
All the best programmers do their best to make their written programs more reusable, because it allows you to quickly write more robust and scalable programs.
There are two choices to make code reusable:
1. White box: The simplest one is to copy your program to another file.
2. Black box: It involves connecting a compiled piece of the program. So the compiled black box class library that the client can invoke is called a component.
. NET also provides dev
Part of this section requires the reader to be familiar with the message invocation principle of COM, and the principle of this is as shown in Mr. Yang's column.
Previous content:
COM Server--> COM client
...
COM server-->. NET Client
1, P/invoke
2, COM Interop (conten
This digest from: http://www.job168.com/info/read_100394.htmlMany of Microsoft's technologies, such as OLE, ActiveX, and DirectX, are built on COM technology. Microsoft itself also uses a lot of COM components to customize their applications and operating systems. So, what is COM?The so-called
1, the object-oriented system of the three most basic characteristics
Encapsulation, polymorphism, reusability.
2, COM characteristics of the overview
The encapsulation characteristics of COM objects are very thorough, all object state information must be accessible through an interface, while COM polymorphism is fully represented by the interface, and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.